package DailyQuestions;
/*不用加减乘除做加法*/
public class Day27_JiaFa {
    public int Add(int num1,int num2) {
        if((num1&num2)==0){
            return num1^num2;
        }
        int temp1=num1^num2;
        int temp2=num1&num2;
        temp2<<=1;
        return Add(temp1,temp2);
    }
}
